/**
 * Author: w景洋.
 * Time: 2016/7/6 0006
 */
angular.module('entrance.service.home', [
    "ngResource",
    "ngStorage"
])

//获取商店列表
.service('Entrance_HomeService',['$resource',function($resource) {

        //获取所有的服务模块
        this.allService = function(){
            var serurl = $resource(baseurl+"service/selectbyall");
            return serurl.query();
        }
        //定位
        this.getLocation = function(lng,lat){
            var abcurl = $resource("http://restapi.amap.com/v3/geocode/regeo?location="+lng+","+lat+"&extensions=base&output=json&key=e13d1720686121d73f704b4b42b3a6af");
            return abcurl.get();
        }
}])
    //获取转让中餐馆的信息
    .service('Entrance_WpzrService',['$resource',function($resource){
        var wpzrService = $resource('http://120.55.194.39:81/infopub/store/byseq/0');
        this.getWpzrList = function(){
            return wpzrService.query();
        }
    }])
;
